package com.kcl.dfss;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

public class VideoHistoryActivity extends Activity {

	private RelativeLayout recent_video,danger_video;
	private LinearLayout video_history_back;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_video_history);
		
		recent_video = (RelativeLayout) findViewById(R.id.recent_video);
		danger_video = (RelativeLayout) findViewById(R.id.danger_video);
		video_history_back = (LinearLayout) findViewById(R.id.video_history_back);
		
		recent_video.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(getBaseContext(), SaveRecordActivity.class);
				startActivity(intent);
			}
		});
		
		danger_video.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				
			}
		});
		
		video_history_back.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}

}
